package Q1;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String str1 = scanner.next();
        String str2 = scanner.next();
        int len1 = str1.length();
        int len2 = str2.length();

        Map<Character, Integer> map1 = new HashMap<>();
        Map<Character, Integer> map2 = new HashMap<>();

        for (int i = 0; i < len1; i++) {
            map1.put(str1.charAt(i), map1.getOrDefault(str1.charAt(i), 0) + 1);
        }

        for (int i = 0; i < len2; i++) {
            map2.put(str2.charAt(i), map2.getOrDefault(str2.charAt(i), 0) + 1);
        }

        for (Map.Entry<Character, Integer> entry : map2.entrySet()) {
            char ch = entry.getKey();
            int num = entry.getValue();
            if (num > map1.getOrDefault(ch, 0)) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
}
